package com.shixi.shixitraining.shixitraining.ui.tabhome.fragment;

import android.content.Context;
import android.os.Bundle;
import android.widget.TextView;

import com.shixi.shixitraining.shixitraining.R;
import com.shixi.shixitraining.shixitraining.base.TabhostBaseFragment;
import com.shixi.shixitraining.shixitraining.ui.tabhome.entity.TrainingListDetailBean;
import com.shixi.shixitraining.shixitraining.view.recycleview.BaseAdapter;
import com.shixi.shixitraining.shixitraining.view.recycleview.BaseRecycleHolder;

import java.util.List;

/**
 * Created by shenyan on 2018/8/9.
 */

public class FeeDescriptionFragment extends TabhostBaseFragment {

    private List<TrainingListDetailBean> dataList;

    @Override
    protected int getlayoutId() {
        return R.layout.fragment_project;
    }

    @Override
    protected void initPager() {

//        RecyclerView freeRcview = (RecyclerView) mContentView.findViewById(R.id.rcview_project);
//        LinearLayoutManager  manager=new LinearLayoutManager(getContext());
//        manager.setOrientation(LinearLayoutManager.VERTICAL);
//        freeRcview.setLayoutManager(manager);
        Bundle arguments = getArguments();
        if (arguments!=null){
            TrainingListDetailBean bean = (TrainingListDetailBean) arguments.getSerializable("bean");
            TextView mContent = (TextView) mContentView.findViewById(R.id.tv_content);

            mContent.setText(bean.getData().getDestine());
        }


    }

    class  FreeDescriptionAdapter extends BaseAdapter<TrainingListDetailBean>{


        public FreeDescriptionAdapter(Context context, List<TrainingListDetailBean> data) {
            super(context, data);
        }

        @Override
        public void convert(BaseRecycleHolder holder, TrainingListDetailBean item, int position) {

        }

        @Override
        protected int getLayoutId(int viewType) {
            return R.layout.adapter_free;
        }
    }




}
